--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
meshchatx/src/backend/colour_utils.py 0454f220a9716c400189930cab7623d9cde4f90b (0454f220) Text, 292 B
T8b949e# SPDX-License-Identifier: 0BSD AND MIT
Tff7b72class T56d364ColourUtilsTb4b4b4:
Tf0883e@staticmethod
Tff7b72def Td2a8ffhex_colour_to_byte_arrayTb4b4b4(Te6edf3hex_colourTb4b4b4)Tb4b4b4:
T8b949e# remove leading "#"
Te6edf3hex_colour Tff7b72= Te6edf3hex_colourTff7b72.Td2a8fflstripTb4b4b4(Ta5d6ff"Ta5d6ff#Ta5d6ff"Tb4b4b4)
T8b949e# convert the remaining hex string to bytes
Tff7b72return Tffa657bytesTff7b72.Td2a8fffromhexTb4b4b4(Te6edf3hex_colourTb4b4b4)
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────